<?php
	include 'DBController.php';
	$meaningIndex = $_GET['meaningIndex'];
	$chineseMeaning = $_GET['chineseMeaning'];
	$englishMeaning = $_GET['englishMeaning'];
	$wordId = $_GET['wordId'];
	
	$meaning = new Meaning();
	$meaning->setCnTranslate($chineseMeaning);
	$meaning->setEngTranslate($englishMeaning);
	
	$meaning = addMeaning($meaning, $wordId);
	updateWordEditTime($wordId);
	$meaningId = $meaning->meaningId;
	
	echo $chineseMeaning."||".$englishMeaning."||".$meaningId."||".$meaningIndex;
?>